/*
 RequireJS i18n 2.0.2 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/requirejs/i18n for details
*/
(function(){function q(a,b,d,h,l,g){b[a]||(a=a.replace(/^zh-(Hans|Hant)-([^-]+)$/,"zh-$2"));return b[a]?(d.push(a),!0!==b[a]&&1!==b[a]||h.push(l+a+"/"+g),!0):!1}function B(a){var b=a.toLowerCase().split(/-|_/);a=[b[0]];var d=1,h;for(h=1;h<b.length;h++){var l=b[h],g=l.length;if(1==g)break;switch(d){case 1:if(d=2,4==g){a.push(l.charAt(0).toUpperCase()+l.slice(1));break}case 2:d=3;a.push(l.toUpperCase());break;default:a.push(l)}}if(!("zh"!=a[0]||1<a.length&&4==a[1].length)){b="Hans";d=1<a.length?a[1]:
null;if("TW"===d||"MO"===d||"HK"===d)b="Hant";a.splice(1,0,b)}return a}function x(a,b){for(var d in b)b.hasOwnProperty(d)&&(null==a[d]?a[d]=b[d]:"object"===typeof b[d]&&"object"===typeof a[d]&&x(a[d],b[d]))}var y=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define(["module"],function(a){var b=a.config?a.config():{};return{version:"2.0.1+",load:function(a,h,l,g){g=g||{};g.locale&&(b.locale=g.locale);var c=y.exec(a),n=c[1],e,p=c[5],u,m=[],v={},f,w="",z,A,k,s,t,r;c[5]?(n=c[1],a=n+p,e=c[4]):(p=c[4],e=b.locale,
"undefined"!==typeof document?(e||(e=g.isBuild?"root":document.documentElement.lang)||(e=void 0===navigator?"root":navigator.language||navigator.userLanguage||"root"),b.locale=e):e="root");u=B(e);z=b.noOverlay;A=b.defaultNoOverlayLocale;if(c=b.merge)if(k=c[n+p])c=y.exec(k),s=c[1],t=c[4];r=[];for(f=0;f<u.length;f++)c=u[f],w+=(w?"-":"")+c,r.push(w);g.isBuild?(m.push(a),k&&m.push(k),h(m,function(){l()})):("query"==b.includeLocale&&(a=h.toUrl(a+".js"),a+=(-1===a.indexOf("?")?"?":"&")+"loc="+e),g=[a],
k&&g.push(k),h(g,function(a,b){var d=[],g,c=!1,e=z||!0===a.__noOverlay,k=A||a.__defaultNoOverlayLocale;for(f=r.length-1;0<=f&&(!c||!e);f--)c=q(r[f],a,d,m,n,p);e&&!c&&k&&q(k,a,d,m,n,p);q("root",a,d,m,n,p);g=d.length;if(b){c=!1;e=!0===b.__noOverlay;k=b.__defaultNoOverlayLocale;for(f=r.length-1;0<=f&&(!c||!e);f--)c=q(r[f],b,d,m,s,t);e&&!c&&k&&q(k,b,d,m,s,t);q("root",b,d,m,s,t)}h(m,function(){var c,e,f;for(c=g;c<d.length&&d[c];c++){f=d[c];e=b[f];if(!0===e||1===e)e=h(s+f+"/"+t);x(v,e)}for(c=0;c<g&&d[c];c++){f=
d[c];e=a[f];if(!0===e||1===e)e=h(n+f+"/"+p);x(v,e)}v._ojLocale_=u.join("-");l(v)})}))}}})})();
